#include "StdAfx.h"
#include "DatabaseProxy.h"

CDatabaseProxy::CDatabaseProxy(void)
{
}


CDatabaseProxy::~CDatabaseProxy(void)
{
}

void CDatabaseProxy::Connect( xgc_lpcstr address, xgc_uint16 port, xgc_uint16 test_invent, xgc_uint16 timeout )
{
	net::IMessageQueue **mQueue = GetMessageQueue();
	net::AsyncConnectServer( address, port, net::ProtocalDefault, mQueue, test_invent, timeout );

	__super::Start();
}

void CDatabaseProxy::Disconnect()
{
	__super::Stop();
}

void CDatabaseProxy::RegisteMessage()
{

}

xgc_lpvoid CDatabaseProxy::OnAccept( net::network_t h )
{
	return xgc_nullptr;
}

void CDatabaseProxy::OnClose( xgc_lpvoid userdata )
{

}
